import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 7.首页和城市详情页面传值
    cityInfo:""
  },
  mutations: {
    setInfo(state,info){//7.存储城市详情数据传到home中
      state.cityInfo=info
    }
  },
  actions: {
  },
  modules: {
  }
})
